Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with_ascii_lowercased zig builtin #7496

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

HajagosNorbert
Copy link
Contributor

Please, before you approve, check out the zig code changes, since I'm unsure about handling reference counts. Tests were passing whether I put a referece count decrement statement in the with_ascii_lowercased function or not for the non-unique strings branch, so the string.decref(); is in there quiet arbitrarily.

initFromBigStr isn't used anywhere, so I deleted it.

The test with_ascii_lowercased_non_zero_refcounttest in crates/compiler/test_gen/src/gen_str.rs is an attempt at testing the function when the refcount of it's input string is > 1, but I'm not sure if that's what it does actually.

@HajagosNorbert
Copy link
Contributor Author

CI was failing on the roc formatter check and on the use of camelCased Str.dropPrefix in one of the test.
I don't know why the macos-apple-silicon job ran from > 1h.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant